%html
	%head
		%title My Blog
	%body
		%h1= @person.name
		%p
			%b Address:
			%p= @person.address.street
			%p= @person.address.city
			%p= @person.address.country
			%b Phones:
			- @person.phones.each do |phone|
				%p= phone.number
				%br
		%p{style: "clear: both;"}
			= link_to 'Back', people_path
		%p{style: "clear: both;"}
			= link_to 'Go to all posts', blog_posts_path  
			
